package cn.laixueit.api;

import cn.laixueit.pojo.Category;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Controller
public interface CategoryApi {
    @GetMapping("/category/getById/{id}")
    public ResponseEntity<Category> getById(@PathVariable("id")Long id);

    @GetMapping("/category/findCnameByList")
    public ResponseEntity<List<Category>> findCnameByList(@RequestParam List<Long> cids);
}
